﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Library_dll.Entities;
using System.Xml;

namespace Library_dll
{
    public class Worker 
    {
        public static Radar ReadXMLRadar();
        {
            RADAR rad = new RADAR();

            Comm Comm1 = new Comm();

            try
            {
                XmlDocument xmlDoc = new XmlDocument();
                XmlDoc.Load("RAD_Config.xml");
                XmlNode nodevar1 = xmlDoc.SelectSingleNode("/settings/" = "model");
                rad.Model = nodeVar1.InnerText;
                nodeVar1 = XmlDoc.SelectSingleNode("/settings/" + "model");
                rad.Series = nodeVar1.InnerText;
            }
            catch
            {
                //write to text log
            }
            return rad;

        }

        public static COMM ReadXMLRadar();
        {
            Comm Comm1 = new Comm();

            try
            {
                XmlDocument xmlDoc = new XmlDocument();
                XmlDoc.Load("COMM_Config.xml");
                XmlNode nodevar1 = xmlDoc.SelectSingleNode("/settings/" = "model");
                Comm.Model = nodeVar1.InnerText;
                nodeVar1 = XmlDoc.SelectSingleNode("/settings/" + "model");
                Comm.Series = nodeVar1.InnerText;
            }
            catch
            {
                //write to text log
            }
            return Comm;
        }
        public static MISSILE ReadXMLRadar();
        {
            Mis Mis1 = new Comm();

            try
            {
                XmlDocument xmlDoc = new XmlDocument();
                XmlDoc.Load("COMM_Config.xml");
                XmlNode nodevar1 = xmlDoc.SelectSingleNode("/settings/" = "model");
                Comm.Model = nodeVar1.InnerText;
                nodeVar1 = XmlDoc.SelectSingleNode("/settings/" + "model");
                Comm.Series = nodeVar1.InnerText;
            }
            catch
            {
                //write to text log
            }
            return Comm;
        }

        

    }
}
